﻿<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <META content="IE=11.0000"
          http-equiv="X-UA-Compatible">

    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <TITLE></TITLE>
    <LINK href="css/style.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="js/jquery-1.12.4.js"></script>
    <script type="text/javascript">
        function go() {
            window.history.go(-1);
        }
    </script>
    <META name="GENERATOR" content="MSHTML 11.00.10586.420">
</head>
<BODY>
<DIV class="wrap" id="header"><IMG src="images/logo.gif"></DIV>
<DIV class="wrap" id="navbar">
    <DIV class="profile"><span th:text="${session.uname}">阿凡达</span>
        <SPAN class="return"><A th:href="@{slist}">返回列表</A></SPAN>
        <SPAN class="return"><A th:href="@{esc}">注销</A></SPAN>
    </DIV>
</DIV>
<DIV class="wrap" id="vote">
    <H2>查看投票</H2>
    <UL class="list">
        <LI>
            <H4 th:text="${subject.title}"></H4>
            <P class="info" th:text="'公有'+${subject.js}+'个选项，已有'+${subject.sum}+'个投票'"></P>
            <OL >
                <LI th:each="o:${olist}">
                    <span th:text="${o.option}"></span>
                    <<DIV class="rate">
                        <DIV class="ratebg">
                            <DIV class="percent" th:style="'width:'+${o.lenth}+'%'"></DIV>
                        </DIV>
                        <P><span th:text="${o.order}+'票'"></span><SPAN th:text="${#numbers.formatDecimal(o.lenth, 2, 2)}+'%'" ></SPAN></P>
                    </DIV>
                </LI>
            </OL>
            <DIV class="goback"><A href="#" onclick="go()">返回投票列表</A></DIV>
        </LI>
    </UL>
</DIV>
<DIV class="wrap" id="footer"> 北大青鸟 © 版权所有</DIV>
</BODY>
</html>
